/*
 * User: ophir
 * Date: Sep 9, 2008
 * Time: 10:10:48 PM
 */
package org.conann.metadata;

import org.conann.Stereotype;
import org.conann.common.ConcurrentStaticCache;

import java.lang.annotation.Annotation;

public class StereotypeRegistry extends ConcurrentStaticCache<Class<? extends Annotation>, Stereotype> {

    private static final StereotypeRegistry instance = new StereotypeRegistry();

    @Override
    public Stereotype create(Class<? extends Annotation> type) {
        return new Stereotype(type);
    }

    public static StereotypeRegistry getInstance() {
        return instance;
    }
}